package EmailExample;

public class SpamEmailHandler extends AbstractEmailHandler {
    protected String[] matchingWords() {
        return new String[]{"diet", "pills", "medicines"};
    }
 
    protected void handleHere(String email) {
        System.out.println("This is a spam email.");
    }
}
